package base.decorator;

import com.itheima.service.UserService;

/**
 * @program: Spring_day01_01_IOC入门程序
 * @description:
 * @author: xuejingjing
 * @create: 2021-08-04 10:34
 **/
public class UserServiceImplDecorator2 implements UserService {

    private UserService userService;

    //构造方法
    public UserServiceImplDecorator2(UserService userService){
        this.userService = userService;
    }


    public void save() {
        userService.save();
        //增强功能
        System.out.println("贴壁纸");

    }
}
